
<form id="form" action="{:url('setting/config')}">
<div class="titlebar"><i class="iconfont icon-setup_icon"></i>系统配置</div>
<table class="formtable">
    <tr>
        <th>客服电话:</th>
        <td><input class="input" datatype="*" type="text" name="service_telephone" value="{$info.service_telephone}" /></td>
    </tr>
    <tr>
        <th>买单开通会员:</th>
        <td>
            <select class="select w180" datatype="*" name="is_dopay_on_vip" class="select">
                <option value="0" {$info.is_dopay_on_vip == 0 ? 'selected' :''}>关闭</option>
                <option value="1" {$info.is_dopay_on_vip == 1 ? 'selected' :''}>开启</option>
            </select>   
            <span class="gray">开启后,商家付款买单选择领取任何一个优惠券即成为当前买单商家的会员</span>
        </td>
    </tr>
    <tr>
        <th>买单收费模式:</th>
        <td>
            <select class="select w180" datatype="*" name="is_fees_types" class="select">
                <option value="0" {$info.is_fees_types == 0 ? 'selected' : ''}>消费即收费</option>
                <option value="1" {$info.is_fees_types == 1 ? 'selected' : ''}>用优惠券收费</option>
                <option value="2" {$info.is_fees_types == 2 ? 'selected' : ''}>全部不收费</option>
            </select>   
            <span class="gray">好店所属会员任何模式下都不扣服务费,不收费的消费将不创建分账数据</span>
        </td>
    </tr>
</table>
<div class="titlebar"><i class="iconfont icon-cuxiaohuodong"></i>费率与奖励</div>
<div class="tipbox tipbox-message mb5">
    <span class="fn-fb">重要提示:</span><br />
    1、所有分账比例,请自行确认合计别超过100%,平台不做最大值限制。<br />
    2、每次分账根据不同的用户权限判断,每次不一定会按分配设置全额分配完毕,剩余金额将奖励到[财务管理->商户入件-默认商户号]<br />
</div>
<table class="formtable">
    <tr>
        <th>支付费率:</th>
        <td><input class="input" datatype="n" type="text" name="default_charges" value="{$info.default_charges}" /> ‰ <span class="gray">交易如果直接结算到商家商户号,是微信官方支付费率</span></td>
    </tr>
    <tr>
        <th>提现手续费:</th>
        <td><input class="input" datatype="n" type="text" name="cash_charges" value="{$info.cash_charges}" /> ‰ <span class="gray">提现手续费,加盟好店免手续费。</span></td>
    </tr>
    <tr>
        <th>联盟城市:</th>
        <td><input class="input" datatype="n" type="text" name="company_rebate" value="{$info.company_rebate}" /> % <span class="gray">联盟城市奖励比例(0-20)%</span></td>
    </tr>
    <tr>
        <th>合伙人:</th>
        <td><input class="input" datatype="n" type="text" name="workers_rebate" value="{$info.workers_rebate}" /> % <span class="gray">合伙人奖励比例(0-10)%</span></td>
    </tr>
    <tr>
        <th>商家奖励:</th>
        <td><input class="input" datatype="n" type="text" name="store_rebate" value="{$info.store_rebate}" /> % <span class="gray">商家奖励比例(0-20)%,给消费用户所属好店老板</span></td>
    </tr>
    <tr>
        <th>社群主奖励:</th>
        <td><input class="input" datatype="n" type="text" name="agent_rebate" value="{$info.agent_rebate}" /> % <span class="gray">消费社群主奖励比例(0-10)%</span></td>
    </tr>
    <tr><th>平台奖励:</th><td><span class="gray">如消费奖励未100%分配完毕,剩余的将会分配给<span class="red">平台运营方</span>[财务管理->商户入件-默认商户号]</span</td></tr>
</table>
    <div class="titlebar"><i class="iconfont icon-cuxiaohuodong"></i>社群主</div>
    <table class="formtable">
        <tr>
            <th>开通费用(￥):</th>
            <td><input class="input" datatype="npot" type="text" name="agent_on_amount" value="{$info.agent_on_amount}" /></td>
        </tr>
    </table>
    <div class="titlebar"><i class="iconfont icon-cuxiaohuodong"></i>合伙人</div>
    <table class="formtable">
        <tr>
            <th>开通费用(￥):</th>
            <td><input class="input" datatype="npot" type="text" name="workers_on_amount" value="{$info.workers_on_amount}" /></td>
        </tr>
        <tr>
            <th>申请好店(￥):</th>
            <td><input class="input" datatype="npot" type="text" name="workers_on_store" value="{$info.workers_on_store}" /></td>
        </tr>
        <tr>
            <th>开通折扣(%):</th>
            <td><input class="input" datatype="npot" type="text" name="workers_discount" value="{$info.workers_discount}" /></td>
        </tr>
    </table>
    <div class="titlebar"><i class="iconfont icon-renminbi1688"></i>结算权限</div>
    <div class="tipbox tipbox-message mb5">
        <span class="fn-fb">重要提示:</span> 当分账金额小于0.1元时,将不做奖励分配,每一个被奖励方的最小金额是0.01元。
    </div>
<table class="formtable">
    <tr>
        <th>结算方式:</th>
        <td>
            <select class="select w180" datatype="*" name="is_psp" class="select">
                <option value="0" {$info.is_psp == 0 ? 'selected' :''}>普通商户号</option>
                <option value="1" {$info.is_psp == 1 ? 'selected' :''}>微信服务商</option>
            </select>   
            <span class="gray">请确认您的运营方式,普通商户号不支持加盟商户及时到账</span>
        </td>
    </tr>
    <tr>
        <th>分账权限:</th>
        <td>
            <select class="select w180" datatype="*" name="is_wechat_profitsharing" class="select">
                <option value="0" {$info.is_wechat_profitsharing == 0 ? 'selected' :''}>关闭</option>
                <option value="1" {$info.is_wechat_profitsharing == 1 ? 'selected' :''}>开启</option>
            </select>   
            <span class="gray">分账开启,请先确认您的微信商户支持<span class="red">分账权限</span></span>
        </td>
    </tr>
    <tr>
        <th>付款权限:</th>
        <td>
            <select class="select w180" datatype="*" name="is_wechat_touser" class="select">
                <option value="0" {$info.is_wechat_touser == 0 ? 'selected' :''}>关闭</option>
                <option value="1" {$info.is_wechat_touser == 1 ? 'selected' :''}>开启</option>
            </select>   
            <span class="gray">付款到零钱,请先确认您的微信商户支持<span class="red">付款权限</span></span>
        </td>
    </tr>
    <tr>
        <th>红包权限:</th>
        <td>
            <select class="select w180" datatype="*" name="is_wechat_redpacket" class="select">
                <option value="0" {$info.is_wechat_redpacket == 0 ? 'selected' :''}>关闭</option>
                <option value="1" {$info.is_wechat_redpacket == 1 ? 'selected' :''}>开启</option>
            </select>   
            <span class="gray">直接发送奖励红包,请先确认您的微信商户支持<span class="red">红包权限</span></span>
        </td>
    </tr>
<tr><th></th>
    <td>
        <input type="submit" value="确定" class="button submit" />
        <input type="reset" value="重置" class="button button-blank" />
    </td>
</tr>
</table>
</form>
<script type="text/javascript">
Do('base', 'layer', 'form', function () {
    $('#form').isForm();
})
</script>